/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.awt.Button;
import javax.faces.bean.ManagedBean;
import java.io.Serializable;
import javax.faces.event.AjaxBehaviorEvent;

/**
 * p
 *
 * @author FLORESITA
 */

@ManagedBean(name="cine")
public class Cine implements Serializable{
private static final long serialVersionUID = 1L; 
    /**
     * Creates a new instance of Cine
     */
private Integer numberant;
private Integer numberact;
public Button b1, b2;
    public Cine() {
    }
      public Integer getNumberact() {
        return numberact;
    }

    public void setNumberact(Integer numberact) {
        this.numberact = numberact;
    }
        public Integer getNumberant() {
        return numberant;
    }

    public void setNumberant(Integer numberant) {
        this.numberant = numberant;
    }
      private boolean enableAddButton;  
      
    
    public void moduleIdDropDownSelected(final AjaxBehaviorEvent evt) {  
        enableAddButton = true;  
    }  
      
    /** 
     * @return the enableAddButton 
     */  
   public final boolean getEnableAddButton() {  
        if (b1.isEnabled())
        {
            b1.disable();
        }
        else
            b1.enable();
        
        return enableAddButton;  
    } 

}

   
    /**
     * my ButtonBean class file - Ali Kerim Erkan
     */

   

